package org.example4;

import org.springframework.stereotype.Service;

//实现了接口的类
@Service("customerService")
public class CustomerServiceImpl implements CustomerService {

    @Override
    public void save() {
        System.out.println("    CustomerServiceImpl类中的save方法执行了");
    }

    @Override
    public int find() {
//		int d=1/0;
        System.out.println("    CustomerServiceImpl类中的find方法执行了");
        //close...
        return 100;
    }

    //子类扩展方法
    public void update() {
        System.out.println("    CustomerServiceImpl类中的update方法执行了");
    }
}
